package com.cskaoyan.day2;

import java.util.Scanner;

public class InvertedTriiangle {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数需要打印的行数：");
        int n = sc.nextInt();
        printInvertedTriiangle(n);
    }

    private static void printInvertedTriiangle(int n) {
        for (int i = 0; i < n; i++) {
            for (int j = 1; j <= n - i; j++) {
                System.out.print("*");
            }
            System.out.println();

        }
    }
}
